<template>
  <div class="search">
    <div class="searchbar__input">
      <div class="search-icon">
        <van-icon name="search" />
      </div>
      <input placeholder="搜索全部订单" type="text" />
    </div>
    <div class="searchbar__button">搜索</div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  components: {},

  methods: {}
};
</script>

<style scoped lang="scss">
/* // 搜索键 */

.search {
  padding: 12px;
  position: relative;
}
.searchbar__input {
  width: 260px;
  height: 26px;
  // float: left;
  background-color: #fff;
  border-radius: 0.15rem;
  .search-icon {
    position: absolute;
    left: 12px;
    top: 14px;
    color: #b2b2b2;
    padding: 0.05rem 0 0.05rem 0.1rem;
  }
  input {
    position: absolute;
    left: 0;
    width: 240px;
    height: 26px;
    font-size: 14px;
    margin-left: 40px;
    border: none;
    border-radius: 12px;
  }
}
.van-tabs__nav--line {
  height: 40px;
}
.searchbar__button {
  height: 26px;
  position: absolute;
  top: 12px;
  right: 10px;
  background: #ff5000;
  width: 75px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  text-align: center;
  line-height: 25px;
}
</style>